<%@ page language="java" import="java.util.*" pageEncoding="Utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改酒店床型</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/base.css" type="text/css" media="screen" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/page.css" type="text/css" media="screen" />
<script src="${pageContext.request.contextPath}/common/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/common/js/common.js" type="text/javascript"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/js/formvalidator.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/js/formvalidatorregex.js"></script>
<script type="text/javascript">
	$(function(){
		$.formValidator.initConfig({formid:"form",autotip:true});
		$("#name").formValidator({onshow:"请输入床型名称",onfocus:"床型名称不能为空。"}).inputValidator({min:1,max:30,onerror:"床型名称不能为空。"});
		$("#sort").formValidator({onshow:"请输入排序",onfocus:"排序不能为空。"}).regexValidator({regexp:"num1",datatype:"enum",onerror:"请输入正确的排序"});
		});
</script>
</head>
<body>
<div class="pd10">	
	<div class="listbox">
		<form id="form" action="bedType!update.action" method="post">
			<div>
				<table class="addtab"  align="left">
					<tr>
						<th>酒店床型</th>
						<td><input type="text" class="tx6" name="bedType.name" value="<s:property value="bedType.name"/>" id="name"/></td>
					</tr>
					<tr>
						<th>排序</th>
						<td><input type="text" class="tx3" name="bedType.sort" value="<s:property value="bedType.sort"/>" id="sort"/></td>
					</tr>				
				</table>
			</div>
			<input type="hidden" name="bedType.id" value="<s:property value="bedType.id"/>" />
			<div class="hidden"><input id="editsubmit" type="submit"/></div>
		</form>
	</div>
</div>
</body>
</html>